import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import 'antd-mobile/dist/antd-mobile.css';//引入antd样式
import 'amfe-flexible';//移动端是配置
import './index.css';//公共样式
import store from './redux/index';//原生redux
import RouterMap from './router/index';
import * as serviceWorker from './serviceWorker';

let App = () => {
  return (
    <AppContainer>
      <Provider store={store}>
        <RouterMap></RouterMap>
      </Provider>
    </AppContainer>
  )
}

ReactDOM.render(<App />, document.getElementById('root'));

// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
serviceWorker.unregister();
